User Interface Tag For Use In Processing A Service On A Scannable Document

ABSTRACT

A user interface tag for use in processing a service on a scannable document is provided. A printable surface is on one side of the scannable document and an adhesive surface is on another side of the scannable document. The printable surface further includes a printed data field specified substantially within the printable surface, including machine-readable marks of digital data encoding a service code and a user identification number; and a printed rectilinear border surrounding the printed data field to define a rectilinear iconic representation. A scanned representation of the machine-readable marks is located by identifying the printed rectilinear border using corner candidates oriented in diametric opposition from among connected components identified on the document and the scanned representation of the machine-readable marks are decoded from the rectilinear iconic representation to specify the user identification number and the service code.

CROSS-REFERENCE TO RELATED APPLICATION

This patent application is a divisional of U.S. patent application Ser. No. 11/656,385, filed Jan. 22, 2007, pending, which is a continuation of U.S. Pat. No. 7,168,036, issued Jan. 23, 2007, the priority filing dates of which are claimed, and the disclosure of which are incorporated by reference.

FIELD

The invention relates to a hardcopy-based computer user interface scheme for document processing applications and, more particularly, to a tag-based user interface scheme adapted to perform services with a hardcopy document dependent on user or service information stored as printed data on a tag associated with the document.

BACKGROUND

Many people are most comfortable dealing with documents in hardcopy format. In general, hardcopy documents are easier to read, handle, and store than documents kept in the digital domain. No special expertise or computer hardware is needed.

However, in general, manipulating documents in the digital domain is far easier. Text can be indexed, searched upon, reformatted, extracted, and otherwise changed. Stored documents can be easily duplicated, without loss of quality, and transmitted from person to person (for example, via e-mail). And significantly, all of this manipulation can be accomplished without using paper. Moreover, digital copiers and scanners are becoming far more prevalent in both office and home settings.

On the other hand, handling documents in the digital domain typically requires access to a computer system or network. If the user of the computer system does not have a baseline level of expertise or competence in using the system, then productivity can suffer. This consideration can be a serious impediment to the implementation of a “paperless office,” in which digital documents are the prevailing document type.

Accordingly, there is a need to be able to effectively manage documents in the digital domain, as well as to ease the transition from hardcopy documents to digital documents.

Previous attempts to facilitate handling digital documents have often used traditional user-interface paradigms. For example, when a hardcopy document is to be scanned and entered into a document repository, commands to that effect are first entered into a computer terminal or scanning device, which then performs the desired service with the document. A similar sequence of steps is performed when the hardcopy is to be scanned and faxed, scanned and e-mailed, scanned and recognized (via optical character recognition software), or any of numerous other possibilities. Although the entry of commands can be facilitated via user-friendly software or self-explanatory commands, these extra steps are still tedious and may still require a certain level of expertise. Moreover, the sequence of commands entered may be lost once the operation has been performed, and there is a potential for error even with experienced users.

Another possibility is to employ a cover sheet that includes a form for specifying commands. The cover sheet is filled out as the user desires (either by hand-writing commands or by marking check-boxes, for example), and the scanner interprets the commands on the cover sheet and processes the following document accordingly. This approach, too, can be tedious and relatively inefficient, as the approach requires a special-purpose cover sheet to be used for each job. Maintaining a supply of the proper cover sheets can be inconvenient.

Various one- and two-dimensional data codes are known and available to be used to store digital data on hardcopy documents. For example, various types of barcodes (for example, the familiar UPC symbol used as a retail product code) are very well known and are robustly decodable. Other examples of linear barcodes are known as Code 39, Code 128, Interleaved 2 of 5, and Postnet. Two-dimensional codes, such as the PDF417 code and the UPS MaxiCode used by the United Parcel Service to track packages, for example, are becoming more and more widespread.

Self-clocking glyph codes, such as Xerox DataGlyphs, are attractive for embedding machine-readable digital information in images of various types, including ordinary hardcopy documents. These codes have substantial tolerance to image distortion and noise because the digital information they encode is embedded in and fully defined by explicit machine-readable marks, for instance, “glyphs,” a term used herein which is not intended to be limited to Xerox DataGlyphs, but rather is intended to cover all machine-readable marks. These glyphs not only encode the information that is embedded in the code, but also define the sample clock that is employed to extract that information from the code, so they are responsible for the “self-clocking” property of the code as well as the distortion and noise tolerance.

Another known advantage of self-clocking glyph codes is that they ordinarily have an unobtrusive visual appearance, especially codes composed of glyphs that are written on a two-dimensional spatially periodic pattern of centers, such as a regular lattice-like pattern of centers, because the spatial periodicity of the glyphs causes the code to have a more-or-less uniformly textured appearance. For example, logically ordered single bit digital quanta typically is encoded by respective elongated slash-like glyphs which are written on a two-dimensional, spatially periodic pattern of centers in accordance with a predetermined spatial formatting rule, with the individual glyphs being tilted to the left or right of vertical by approximately +45° and −45° for encoding logical “0's” and “1's”, respectively. The mutual orthogonality of the glyph encodings for the two logical states of these single bit digital quanta enhances the discriminability of the code sufficiently to enable the embedded information to be recovered, even when the code pattern is written on a sufficiently fine grain pattern of center to cause the code pattern to have a generally uniform grayscale appearance. However, self-clocking glyph codes can be designed to encode multi-bit digital quanta in the glyphs.

Accordingly, providing a solution that facilitates the use of documents in the digital domain and the transition of documents from hardcopy to digital formats is desirable. Such a solution should be simple, efficient, convenient, and require little or no expertise on the part of the user.

SUMMARY

A scheme of encoded tags, such as adhesive stickers or labels, is used to serve as the primary user interface in a hardcopy document processing system. Such a system would permit a user to specify all action or a service to be performed, along with his or her identity, simply by applying a sticker to the document and placing the document into a bin to be scanned.

The stickers are relatively small and unobtrusive, and, in one embodiment, use Xerox DataGlyphs to encode the user's identity, a desired service, and an optional argument for the service. The user maintains a supply of stickers corresponding to a particular service, for example, “scan and send to my personal e-mail account.” When the user desires that service to be performed, he simply applies one of the appropriate stickers to the document.

A computer system performing one embodiment operates by first accepting information on the user's identity. This information can be obtained, for example, by scanning and analyzing one of the user's business cards. This information is stored in a database and is given a unique user ID number. The user ID is combined with a desired service code, and the resulting data set is encoded into the desired printed data format. The system then prints a customized set of labels representing the user ID and service.

When the user wishes to have the service specified by his stickers performed, he or she simply applies one of the stickers to a document and places the document into a scanning queue. The document is scanned, the sticker is identified, decoded, and re-associated with the user's information retrieved from the database, and the desired service is performed.

As will be recognized, this system can be adapted to perform numerous services and actions, including but not limited to simply scanning and storing the document in a repository, faxing the document, converting the document into a standard electronic format, such as Microsoft Word format, and others.

One embodiment provides a user interface tag for use in processing a document. A printable surface is oil one side of a document and an adhesive surface is on an other side of the document. The printable surface further includes a printed data field, including machine-readable marks of digital data encoding a service and a user identity; and a printed border surrounding the printed data field to define an iconic representation. A scanned representation of die machine-readable marks is decoded from the iconic representation to specify the user identity and the service.

A further embodiment provides a user interface tag for use in processing a service on a scannable document. A printable surface is on one side of a scannable document and an adhesive surface is on an other side of the scannable document. The printable surface further includes a printed data field specified substantially within the printable surface and including machine-readable marks of digital data encoding a service code and a user identification number. The printable surface further includes a printed rectilinear border surrounding the printed data field to define a rectilinear iconic representation. A scanned representation of the machine-readable marks is located by identifying the printed rectilinear border using corner candidates oriented in diametric opposition from among connected components identified on the document. The scanned representation of the machine-readable marks are decoded from the rectilinear iconic representation to specify the user identification number and the service code.

A still further embodiment provides a glyph-encoded user interface tag for use in processing a scannable document. A printable surface is on one side of a scannable document and an adhesive surface is on an other side of the scannable document. The printable surface further includes a printed data field, including machine-readable glyphs of digital data encoding a service code and a unique user identification number, and a printed border surrounding the printed data field to define an iconic representation. A scanned representation of the machine-readable glyphs is decoded from the iconic representation to specify the unique user identification number and the service code.

Accordingly, the sticker-based user interface is convenient and simple and does not require the user to enter commands on a computer system or fill out a cover sheet for every document to be processed. The sticker-based user interface is efficient as only the user is required to keep a supply of small stickers.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is an exemplary glyph sticker in a configuration according to one embodiment;

FIG. 2 is an exemplary block diagram illustrating a data structure represented by the glyph sticker of FIG. 1;

FIG. 3 is a system-level block diagram;

FIG. 4 is a high-level functional flow chart of the sticker creation function;

FIG. 5 is a high-level functional flow chart of the sticker processing function;

FIG. 6 is a flow chart illustrating the sequence of steps performed in locating the sticker as set forth in FIG. 5;

FIG. 7 is a flow chart illustrating the sequence of steps performed in decoding the sticker as set forth in FIG. 5;

FIG. 8 illustrates a portion of an exemplary glyph lattice with associated glyph bitmaps and lattice vectors;

FIG. 9 is a flow chart illustrating the sequence of steps performed in determining the glyph lattice as shown in FIG. 7;

FIG. 10 is a schematic diagram illustrating the search directions employed in searching for glyphs as shown in FIG. 7;

FIG. 11 is a flow chart illustrating the sequence of steps performed in finding a seed glyph as in FIG. 7;

FIG. 12 is a schematic diagram illustrating the procedure used to find all glyphs as in FIG. 7;

FIG. 13 is a flow chart illustrating the sequence of steps performed in finding all glyphs near the seed glyph as shown in FIG. 7; and

FIG. 14 is a flow chart illustrating the steps performed in decoding a glyph pattern according to one embodiment.

DETAILED DESCRIPTION

The invention is described below, with reference to detailed illustrative embodiments. The invention can be embodied in a wide variety of forms, some of which may be quite different from those of the disclosed embodiments. Consequently, the specific structural and functional details disclosed herein are merely representative and do not limit the scope.

FIG. 1 illustrates an exemplary glyph sticker pattern 110, which serves as a paper user interface tag according to one embodiment. The pattern 110 is not to any particular scale and is contemplated to be on the order of 1 inch (2.5 cm) or less in the vertical direction. The pattern 110 has been substantially enlarged here for clarity and to facilitate the identification of details.

Furthermore, while the user interface tag is illustrated in FIG. 1 as an adhesive sticker capable of being applied to documents, the pattern 110 may also be applied to forms, slip sheets, cover sheets, business cards, identification cards, name tags, and other objects capable of being associated with a document and further capable of bearing machine-readable information. For example, in an alternative embodiment, lapel pins bearing the pattern 110 may be associated with a document by scanning the lapel pin, for example, with a hand-held laser scanner, at the same time the document is being scanned and processed.

As shown, the glyph sticker pattern 110 includes several important attributes. A substantially rectangular border 111 surrounds the remaining features and is, in turn, surrounded by white space 113. A glyph field 112 contains a printed representation of digital data used to perform the goals of the embodiment. The structure and contents of the glyph field 112 will be discussed in further detail below. For now, the glyph field 112 of FIG. 1 is shown as using Xerox DataGlyphs. However, any recoverable printed representation of digital information, including but not limited to bar codes, one- and two-dimensional data patterns, and optically recognizable alphanumeric characters can also be used in alternative embodiments to similar effect.

Other identifying elements may also be present within the glyph sticker pattern 110. For example, the Xerox “Digital X” 114 and the registered mark “PaperWare®” 116 are present and used for aesthetic purposes and as trademarks. The phrase “The Person” 118 is also present indicating that this field may be replaced with an indication of the user's name or other information for visual identification. There is also a border portion 120 that is representative of a folded page. This border portion 120 may be present for aesthetic purposes only, or may be used to facilitate determination of the correct orientation of the glyph sticker pattern 110. This aspect will be discussed in further detail below.

Referring now to FIG. 2, an exemplary data structure 210 embodied by the glyph field 112 is set forth as shown. The data structure 210 includes a service code 212, which in one embodiment is a single byte (eight binary bits). Accordingly, the service code 212 can represent up to 256 different possible actions, transformations, and services. Exemplary services may include, but would not be limited to, “scan to document repository,” “scan and send via e-mail,” “scan and fax,” “scan and print copies,” and so forth. An indicated service may, without limitation, include a plurality of actions, for example, scan, then recognize characters, then e-mail the text, and may also involve transformation of the document from hardcopy to electronic form, and possibly back to hardcopy form. Moreover, one or more possible actions might involve the removal or alteration of the glyph sticker pattern 110 on the digitized image of the document, as the presence of the glyph sticker pattern 100 is no longer necessary and may detract from the document's appearance once the presence of the glyph sticker pattern 100 has been acted upon by the system and method.

A service argument 214 provides a coded argument to the service code 212. In one embodiment, the argument 214 is an additional byte (eight bits) of information. For example, certain services may require a numeric argument, for example, “scan and print copies” followed by an argument of “10” will print ten copies. Other services may require a differently coded argument, for example, “scan and fax” followed by an argument of “2” may represent a command to fax the document to the user's home fax number, as opposed to an office fax number or, perhaps, an alternate office fax number, both of which would have different argument numbers. Many other uses of the service argument 214 may also be envisioned.

An identity code 216 comprises most of the rest of the data structure 210. In an embodiment, the identity code includes sixteen bytes of identity information, which is sufficient to encode a unique identification number for each member of nearly any conceivable population, and eight bytes of security information, rendering the identity code essentially tamper-proof. The identity information is formed from the network address, either an Ethernet address or an IP address, of the machine issuing the identity code, a time stamp, and a sequence number. Although, a number formed in this manner is not guaranteed to be unique under all circumstances, for example, if the database of sequence numbers is lost and the same time stamp is coincidentally used twice, this number is quite robust and sufficiently unique for the purposes of the embodiment. The identity code may be formed in any of numerous other ways and all of which would be acceptable for use.

The data structure 210 also includes error-correction and synchronization information throughout the specified data fields in a manner well known in the art and not shown in FIG. 2.

FIG. 3 represents a system level overview, broken down into several high level functional elements. A “front end” portion 310 receives information from a data input 312. The data input 312 may comprise a keyboard, a business card scanner, a voice recognition device, or any other means of data collection operative to receive data representative of the user's identity. The data input 312 may be expected to receive the user's name, company, title, address, one or several telephone numbers, one or several e-mail addresses, as well as other possible identification information, such as a U.S. Social Security number or a conference ID number. This user information is then received by an identity processor 314, which stores the information as a record in a database hosted by a database server 316. Concurrently, the user information is processed by the identity processor 314 to produce the identity code 216 incorporating the identity and security information discussed above. The identity code 216 and any desired optional service code 212 and service argument 214 are then encoded and printed on a printer 318 or other hardcopy output device in communication with the identity processor 314.

When the user wishes to process a document, he attaches a glyph sticker onto the document and places the document into a scanner 320, which is a part of a “back end” 319 of the system. The scanner is preferably an automated scanner capable of handling multiple jobs and multi-page documents without user intervention. However, any other type of digitizing apparatus, such as, flatbed scanners, digital copiers, and hand-held scanners, would also be usable. The scanner 320 reads the document and formulates a bitmap representative of the document and the glyph sticker on the document.

An action processor 322 reads the bitmap received from the scanner 320, identifies and decodes the glyph sticker, and accesses the database server 316 to determine the identity of the user. The desired service may be known from accessing a list of possible services stored locally on the action processor 322, or may also be determined by accessing a service database oln the database server 316, or alternatively may be inferred simply from the identity of the user.

Based on the user's identity and the desired service, the action processor 322 then causes the desired action to be performed, which may involve the generation of a transformed document by an output device 324. The output device 324 is characterized generally here, but as discussed above, may comprise a hardcopy printer, a facsimile machine or modem capable of sending fax messages, a network connection for e-mail, a connection to a document repository, a digital storage device, such as a floppy disk drive, or an aggregation of some or all of these and other functions.

While the system of FIG. 3 is illustrated as being broken down into several functional blocks, the functions depicted can be performed on a single computer system or by several computer systems connected via a communications network. As a specific example, the database server 316 may be local to the identity processor 314 and the action processor 322, or the database server 316 may be a separate processor in communication with the other elements via a communications network, such as the Internet or a corporate intranet.

As suggested above by FIG. 3, the front end processing of the system, namely the creation of glyph sticker patterns 110 based on user information and a desired service, takes place as a sequence of steps. These steps are shown in the flow chart of FIG. 4.

First, the user or another person inputs information (step 410) into the system, typically via the data input 312 (FIG. 3). All of the information is then stored in the database (step 412) on the database server 316. A service is then selected (step 414). The service may be chosen from a “menu” of possible services, or in one embodiment, only a single service may be operative. In the latter case, the service code 212 and the service argument 214 (FIG. 2) may optionally be omitted from the glyph sticker pattern 110.

The user identity code 216, the service code 212, and the service argument 214 are then encoded and formed into a glyph field 112 representative of the information (step 416). The newly-created customized glyph field 112 is then printed any number of times as glyph sticker patterns 110 onto any desired number of stickers (step 418) for eventual use by the user:

FIG. 5 is a flow chart illustrating what happens after the user has applied a sticker to a document and presented the document for scanning. First, the document is scanned (step 510) and the resulting bitmap is retained for processing. The original hardcopy document may, at this time, be returned to the user, as the original hardcopy document is no longer needed by the system.

The glyph sticker pattern 110 is then located on the document (step 512). In one embodiment, the glyph sticker pattern is located via a rectangle-matching method described below in conjunction with FIG. 6. In an alternative embodiment, the user is directed to place the glyph sticker at a certain location on the document, for example, the upper right corner of the first page, thereby simplifying the operations required to locate the glyph sticker pattern 110. In another alternative embodiment, the sticker pattern 110 can be identified anywhere on a document by segmenting the scanned document bitmap into text and graphics portions, and in the line-graphics portions, locating the right-angled lines that comprise the border of the glyph sticker pattern 110, such as set forth in detail in U.S. Pat. No. 5,202,933 to Bloomberg, entitled “SEGMENTATION OF TEXT AND GRAPHICS,” which is hereby incorporated by reference as though set forth in full. To facilitate the operation, half-tones and finely textured graphics regions, such as lithographed photographs, may also be segmented out (and away from the line graphics) via the methods taught in U.S. Pat. Nos. 5,065,437 and 5,131,049. The glyph sticker pattern 110 may be present in nearly any orientation. Accordingly, the segmentation method should be adapted to check several different orientations by using differently-shaped structuring elements in the morphological operations used in the incorporated '933 patent document to identify horizontal and vertical lines before concluding that no sticker is present. Finally, a Hausdorff-distance-based algorithm may also be used. This method, like the morphological method referenced above, is rotationally sensitive and hence relatively computationally inefficient.

Once the glyph sticker pattern 110 has been located, the data within the glyph field 112 is then decoded (step 514), which is accomplished via methods that will be discussed in further detail below, in connection with FIGS. 7-14. The data is then associated (step 516) with user identification information received from the database server 316 and a desired service, and the service is performed (step 518) by means known in the art and discussed above.

One method used to locate user interface tags, for example, the glyph sticker pattern 110 of FIG. 1, within a digitized image is illustrated in FIG. 6. This method can be used to identify and locate objects that are approximately rectangular in shape, such as the iconic representation of a page with one corner folded over, as used as the glyph sticker pattern 110 in one embodiment (see FIG. 1). Such rectangular objects can be characterized by a height dimension and a width dimension. The identification method can identify the desired pattern in any orientation and with relatively small scale variations, such as those occurring in the printing and digitizing processes, even when image noise is present.

The method is operative on monochromatic images, for instance, binary images represented with only one bit per pixel. If the digitized image is in some other format, such as color or grayscale, the digitized image should first, as a precursor to the method set forth in FIG. 6, be converted to a binary format, typically via a threshold function or by dithering.

The characteristics, for example, resolution, of the digitizing device used are expected to be known. Therefore, because the absolute size of the glyph sticker pattern 110 (FIG. 1) is known, the image size of the glyph sticker pattern 110 can be calculated. Accordingly, the expected width w and the expected height h of the pattern 110, in pixels, is either known or can be easily calculated. With width and height tolerances (?w and ?h, respectively) to account for minor variations in scale, as stated above, a minimum expected width would be w_(min)=(w−?w), a maximum expected width would be w_(max)=(w+?w), a minimum expected height would be h_(min)=(h−?h), and a maximun expected height would be h_(max)=(h+?h). In one embodiment, ?h=(0.1)h and ?w=(0.1)w; stated another way, the tolerances are 10% of the respective height and width. However, other tolerances ranges may also be operative, and different tolerances may be used for the width and height dimensions.

Accordingly, and based on the foregoing, the minimum and maximum expected diagonal measurements would be d_(min)=√{square root over ((w−Δw)²+(h−Δh)²)}{square root over ((w−Δw)²+(h−Δh)²)} and d_(max)=√{square root over ((w+Δw)²+(h+Δh)²)}{square root over ((w+Δw)²+(h+Δh)²)}, respectively.

After a suitable digitized image is available, all connected components within the image are initially identified (step 610). A connected component is a set of pixels of a single value, for example, the value representing black, wherein a path can be formed from any pixel of the set to any other pixel in the set without leaving the set, for example, by traversing only black pixels. In general terms, a connected component may be either “4-connected” or “8-connected.” In the 4-connected case, the path can move in only horizontal or vertical directions, so there are four possible directions. Accordingly, two diagonally adjacent black pixels are not 4-connected, unless there is another black pixel horizontally or vertically adjacent, serving as a bridge between the two. In the 8-connected case, the path between pixels may also proceed diagonally. One embodiment uses 8-connected components, but a 4-connected components could also be identified and used.

Because the border 111 of the glyph sticker pattern 110 (FIG. 1) is formed from single group of contiguous black pixels, the border 111 comprises a single connected component. In one embodiment, the white space 113 around the border 111 is sufficiently wide to ensure that the border 111 is not inadvertently connected with some other portion of the hardcopy document to which the glyph sticker pattern 110 is applied. Moreover, the border 111 is also sufficiently thick to ensure that the border is not inadvertently broken into discrete components by image noise.

The connected components within the image are identified by means known in the art, for instance, by starting with a single black pixel within the image, recursively locating all connected pixels until the connected component is fully defined, and repeating until all black pixels within the image belong to a connected component. However, other means of identifying connected components may also be used to equivalent effect.

Each connected component is then processed separately. If there are any connected components remaining to process (step 611), then the method continues as follows. If the connected component is too small (step 612), that is, if the width or height of the connected component is less than a minimum expected value, then the connected component is rejected (step 614). In one embodiment, the minimum expected value, used for both height and width, is the smaller of h_(min) and w_(min) to account for possible rotation of the pattern 110. Likewise, the connected component is rejected (step 614) if the connected component is too large (step 616), and the width or height of which exceeds the maximum expected value by a substantial amount. In one embodiment, the maximum expected value, for both height and width, is substantially larger than the greater of h_(max) and w_(max) to account for possible rotation. When the pattern 110 or any rectangle is oriented at an angle, the width and height of the pattern 110 may appear to be larger than expected, approaching or equaling d_(max). Accordingly, a buffer is built into the latter check.

Eight extreme points, one for each of eight “compass positions,” are then selected (step 618) from the set of pixels comprising the connected component C. Each point has a position represented by an (x, y) coordinate pair, and represents a pixel of the connected component C that extends furthest in the selected direction (north, northeast, east, southeast, south, southwest, west, or northwest) within the image plane. Each extreme point is chosen as follows.

N=(x _(N) ,y _(N))εC|y _(N) ≦y∀(x,y)εC

E=(x _(E) ,y _(E))εC|x _(E) ≧x∀(x,y)εC

S=(x _(s) ,y _(s))εC|y _(s) ≧y∀(x,y)εC

W=(x _(W) ,y _(W))εC|x _(W) ≦x∀(x,y)εC

NE=(x _(NE) ,y _(NE))εC|(x _(NE) −y _(NE))≧(x−y)∀(x,y)εC

SE=(x _(SE) ,y _(SE))εC|(x _(SE) +y _(SE))≧(x+y)∀(x,y)εC

SW=(x _(SW) ,y _(SW))εC|(x _(SW) −y _(SW))≦(x−y)∀(x,y)εC

NW=(x _(NW) ,y _(NW))εC|(x _(NW) +y _(NW))≦(x+y)∀(x,y)εC

Various optimizations can be performed in identifying the eight extreme points. For example, if the connected component (C is broken down into horizontal runs of contiguous pixels, then only the leftmost pixel in each run need be considered as a candidate for the NW, W, and SW extreme points, and only the rightmost pixel in each run need be considered as a candidate for the NL, E, and SE extreme points. Moreover, if the horizontal runs are ordered vertically, then only the endpoints of the uppermost and lowermost runs need be considered for the N and S extreme points. When the border 111 (FIG. 1) is oriented precisely at any 45° interval from upright, then there may be many pixels within the connected component that satisfy one or more of the criteria for extremeness set forth above. Any satisfactory pixel may be chosen. For example, there is no single south most pixel in the border 111 of FIG. 1, so any pixel along the bottom edge may be chosen. Moreover, for a single pixel to be used as multiple extreme points. Referring again to FIG. 1, for example, a bottom-right corner pixel 122 may be used as the S, SE, and E extreme points without any impact on the described method.

If the connected component C is the border 111, namely, a rectangle with one missing corner, then three of the extreme points will contain rectangular corner points (the folded-over corner will be offset), and the other five will contain irrelevant information. However, the method described herein has not yet determined whether the connected component C is the border 111, or if so, which extreme points represent the corners of the connected component C; that is determined as set forth below.

Consider, then, all eight extreme points. If the distance between any two diametrically opposed extreme points satisfies the diagonal length criteria (step 620), then the connected component is a border candidate. That is, if d_(min)≦∥N−S∥≦d_(max), or if d_(min)≦∥E−W∥≦d_(max), or if d_(min)≦∥NE−SW∥≦d_(max), or if d_(min)≦∥SE−NW∥≦d_(max), then a border candidate has been found. Otherwise, the connected component C is rejected (step 614).

Based on the position of the diagonal, the other two potential corners of the connected component are then identified (step 622) and considered. If the diagonal was found between either the N-S or E-W extremities, then the values of N, E, S, and W are used for p₁, p₂, p₃, and p₄, representing the four corner points of the border candidate, respectively. Similarly, if the diagonal was found between either the NE-SW or SE-NW extremities, then the values of NE, SE, SW, and NW are used for p₁, p₂, p₃, and p₄, the four corner points of the border candidate, respectively.

Then, relationships among the four points p₁, p₂, p₃, and p₄ are analyzed to determine whether a rectangular shape is present (step 624). In particular, the distances between p₁ and p₂, p₂ and p₃, p₃ and p₄, and p₄ and p₁ are all considered. At least one distance (of the four possible) should approximate the expected width, and at least one adjacent, but not the opposing, distance should approximate the expected height.

That is, if either

((w _(min) ≦∥p ₁ −p ₂ ∥≦w _(max)) or (w _(min) ≦∥p ₃ −p ₄ ∥≦w _(max))) and

((h _(min) ≦∥p ₂ −p ₃ ∥≦h _(max)) or (h _(min) ≦∥p ₄ −p ₁ ∥≦h _(max)))

or

((h _(min) ≦∥p ₁ −p ₂ ∥≦h _(max)) or (h _(min) ≦∥p ₃ −p ₄ ∥≦h _(max))) and

((w _(min) ≦∥p ₂ −p ₃ ∥≦w _(max)) or (w _(min) ≦∥p ₄ −p ₁ ∥≦w _(max)))

is true, then the connected component C is potentially the border 111, and is added to a list (step 626) of possible positions. If not, the connected component C is, once again, rejected (step 614).

As stated above, a list of potential positions is generated from all border candidates that satisfy the foregoing criteria. The entire list is then passed to the decode process (step 514 of FIG. 5). Presumably, only one border candidate will contain valid glyph or other data. If more than one border candidate includes valid data, then the first one found is used.

The foregoing method of identifying and locating the substantially rectangular border 111 of the glyph sticker pattern 110, in any orientation and with minor variations in scale, would be applicable to and useful in numerous other image-processing applications. The method illustrated in FIG. 6 and described in detail above may be used to identify and locate nearly any substantially rectangular pattern within a digitized image, either as a part of or separately from the other features and capabilities described herein.

Furthermore, minor variations of this method, readily apparent to those skilled in the art, may also be used to identify and locate various parallelogram, rhombus, trapezoid, and irregular quadrilateral patterns in addition to rectangles and rectangle-like shapes. In these alternative embodiments, either one or both of the diagonals can be checked; the two diagonals may have different expected lengths. In addition, the method can be extended to identify and locate n-sided polygons, by identifying extreme points at 2n evenly-spaced compass positions, and thereafter checking for vertices at alternating extreme points. Where n is an odd number, any diagonal found will not be diametric; however, any expected distance or a set of expected distances between adjacent or nonadjacent vertices, in nearly any n-sided polygon, can be used in a method, according to one embodiment, to identify the polygon within an image.

FIG. 7 illustrates the sequence of steps performed in recognizing a glyph field 112 (FIG. 1) and translating the glyph field 112 into binary data. First, the glyph lattice is determined (step 710). Essentially, glyph lattice vectors (FIG. 8) along with skew and scale information need to be determined; this operation is illustrated in FIG. 9 and described in further detail below. Second, a seed glyph is found (step 712). The recognition process begins by finding a single “good” glyph, the seed glyph; see FIG. 11. Third, all of the glyphs are found (step 714) by recursively examining the seed glyph's neighbors (as shown in FIGS. 12-13). The lattice vectors direct the search and help perform the mapping from image space to a matrix of glyph values. As will be shown below, these steps can all be performed regardless of the glyph field's rotation.

Once all of the glyphs have been located, the proper rotation of the glyph field 112 is determined (step 716). As can be seen in FIG. 1, one glyph configuration comprises “slash” patterns at +45° and −45° orientations. Accordingly, the glyph field 112 may appear to be valid at orientations of 0°, 90°, 180°, and 270°. Therefore, the binary patterns represented by the glyph field 112 are processed to determine the correct rotation. In one embodiment, a synchronization pattern is embedded into the glyph field 112; this pattern will only be reconstructed correctly when the field 112 is in the correct orientation. For a method of disambiguating the glyph field orientation, see the specification and drawings of U.S. Pat. No. 5,449,895 to Hecht and Stearns, entitled “EXPLICIT SYNCHRONIZATION FOR SELF-CLOCKING GLYPH CODES,” which is hereby incorporated by reference as though set forth in full herein. In particular, see columns 15-16 of the '895 patent for a detailed description of rotational disambiguation. The position of the corner 120 (FIG. 1) may also be used in an alternative embodiment to determine the correct orientation of the glyph field 112.

As shown in FIG. 8, a glyph image 810 can be defined by two lattice translation vectors 812 and 814 and two or more bitmaps 816 and 818 that specify the information that is to be represented at each lattice site. This definition is analogous to defining a crystal in solid-state physics. This method of specifying the glyph image allows for a wide variety of structures and also provides a scheme for handling arbitrary rotations, scales, lattices, and bitmaps. For instance, rotation of the glyph image 810 simply corresponds to a rotation of the translation lattice vectors 812 and 814. Just as translation vectors would define the displacement from glyph center to glyph center during construction of the glyph image, the translation vectors also define the displacement from glyph center to glyph center during the recognition process. Viewing the glyph image as a lattice allows the recognition scheme to handle a wide variety of glyph formatting schemes while handling rotation and scale variations.

The method for determining the glyph lattice is based upon building up an average picture of what the local neighborhood of the glyph is, and from this average, determining the lattice vectors. In one embodiment, the method is implemented as follows (and as illustrated in FIG. 9).

In the glyph image, that is, the area within the border 111, identify some number of pixels in the image as seed pixels for processing (step 910). These seed pixels may be, for example, spaced on a lattice of N×N pixels throughout the image, where N is of the order of 10-50 (the spacing may be chosen so that there are approximately 100 seed pixels throughout the glyph image 810).

Then, starting at each seed pixel, find the local minimum intensity in the image nearest that seed (step 912). If no local minimum is found within an appropriate distance of the seed pixel, (for example, 10 pixels), then move to the next seed pixel. The local minima, for instance, the darkest points in the bitmap, typically correspond to glyphs.

Once a local minimum is found, whether there is sufficient image contrast (step 914) between the region within 1 to 2 pixels of the minimum, (for instance, the center, and the region 3 to 4 pixels from the minimum, (for instance, the surrounding area) is determined. If the contrast is too small compared to the average image intensity surrounding the local minimum, then the method abandons further computation with the present local minimum, and moves to the next seed pixel in the glyph image, if there are any. This step, which may be left out if desired, is employed to screen out spurious local minima in the image resulting from noise and other non-glyph material.

Otherwise, the grayscale image surrounding the local minimum is added (step 916) to a composite image, which initially is filled with pixels of value zero. This composite image, which is built up during the processing, thus becomes a sum of the bitmap values around a number of local minima in the glyph image. The composite image is typically on the order of 20×20 pixels in dimension.

If there are any seed pixels remaining to be processed (step 918), then the process is repeated.

After finding the local minima associated with all of the seed pixels, the composite image is analyzed (step 920) to determine the average glyph locations. For example, the center of the composite image will necessarily be a local minimum, as the center of the composite image is composed of many images whose centers were minima. The nearest local minima to the center in the composite image will then correspond to the average nearest neighbor positions of the glyphs in the glyph lattice. Determination of these minima in the composite image will therefore result in knowledge of the configuration of the glyph lattice; the lattice vectors 812 and 814 can then be derived.

The method described above and in conjunction with FIG. 9 is very robust, due to the averaging properties of building up the composite image. As in any signal averaging procedure, in the composite image, pixels corresponding to the locations of glyphs will sum coherently, while image noise will not. In practice, the average glyph lattice parameters of an image may be obtained robustly using the above procedure, even when a large number (>50%) of the glyphs are obscured or eradicated by image noise or overwriting. In addition, the above procedure works under any amount of image skew.

From the glyphs' lattice vectors 812 and 814, a search direction list 1010 is generated. See FIG. 10. The search direction list is a list of corresponding relative displacements in image space 1012 and data space 1014 for finding neighboring glyphs. From a known glyph in image space, the search direction list 1010 provides information on where the neighboring glyphs should be located. And for each translation in image space (1016, 1018, 1020, and 1022), there is a corresponding relative displacement in data space (1024, 1026, 1028, and 1030). Accordingly, for a known lattice structure, rotation, and scale, the relative movements in image space can be specified without changing the corresponding movement in data space. This method of defining the search allows the process to accommodate a wide variety of glyph lattices, rotations, and scales. The search direction list is also extendable to search for second-nearest-neighbor glyphs or non-rectilinear search patterns.

The operations performed in finding a seed glyph for the recognition process will be discussed in connection with FIG. 11. Finding a good seed glyph is critical. If the seed glyph is actually a spurious center, the process will quickly fail. Preferably, the process looks for a seed glyph that has at least four neighboring glyphs. This step gives some assurance that the chosen seed is not spurious.

The seed glyph is found by looking at random locations in the images. At a chosen random location (step 1110), a set of correlation filters is applied over a 3×3 neighborhood of pixels adapted to cover the area of a single glyph (step 1112). The 3×3 neighborhood accommodates noise and small variations in the glyph lattice. The correlation filters that are applied depend upon the image skew determined from finding the lattice vectors 812 and 814. If the skew is between −22.5° and 22.5°, the following correlation filter kernels are applied:

${K_{0} = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix}};{K_{1} = \begin{bmatrix} 0 & 0 & 1 \\ 0 & 1 & 0 \\ 1 & 0 & 0 \end{bmatrix}}$

If the skew is between −45° and −22.5°, the following kernels are applied:

${K_{0} = \begin{bmatrix} 0 & 0 & 0 \\ 1 & 1 & 1 \\ 0 & 0 & 0 \end{bmatrix}};{K_{1} = \begin{bmatrix} 0 & 1 & 0 \\ 0 & 1 & 0 \\ 0 & 1 & 0 \end{bmatrix}}$

If the skew is between 45° and 22.5°, the following kernels are applied:

${K_{0} = \begin{bmatrix} 0 & 1 & 0 \\ 0 & 1 & 0 \\ 0 & 1 & 0 \end{bmatrix}};{K_{1} = \begin{bmatrix} 0 & 0 & 0 \\ 1 & 1 & 1 \\ 0 & 0 & 0 \end{bmatrix}}$

The two correlation kernels are applied separately over the 3×3 neighborhood where a glyph is expected. Since the glyphs typically appear black, the minimum value of the two correlations is observed, and the difference between the two correlations is formed (step 1114) and compared to a threshold (step 1116):

v=min(K ₀ *I _(3×3))−min(k ₁ *I _(3×3))

where * denotes correlation. If the absolute value of v is less than a preset threshold (step 1118), the location does not contain a glyph. If v is positive, the glyph has a value of 0, and if v is negative, the glyph has a value of 1.

Once a glyph is found, the method looks for neighboring glyphs (step 1120) using the search direction list described above. The method stops looking for a seed glyph once the method has found a glyph with four neighboring glyphs (step 1122).

The final step in the recognition process is to determine the values of the individual glyphs and place these values into a matrix. One embodiment uses the search direction list (FIG. 10) to find new glyphs and to properly map their values into a matrix. The process, which is shown in FIG. 13, begins at the seed glyph. The seed glyph is placed into a dynamic data matrix and the location of the glyph in image space and data space are placed onto a search FIFO (first-in-first-out) list (step 1310).

The search FIFO list controls the clustering. As new glyphs are found, they are placed at the end of the search FIFO list. Essentially, the search FIFO list contains the locations in the image that need to be searched for neighboring glyphs. When the search FIFO list is empty, the process stops.

Beginning with the seed glyph, if any glyphs are present in the FIFO list (step 1312), the method pulls a glyph location from the FIFO list (step 1314). The glyph location value is determined (step 1316) and placed into the data matrix. The value of the glyph is determined by using the same correlation kernels used to find the seed glyph. The method then searches outward (step 1318) looking for neighboring glyphs using the search direction list (see FIG. 12( a)); neighboring glyphs are placed into the FIFO list (step 1320). The method generates a cluster of known glyphs that grows outward as the cluster searches for new glyphs around the perimeter of the cluster (FIG. 12( b)). The outcome of the procedure is a data matrix full of data values 1210 (FIG. 12( c)) representative of the glyph image 810.

This method has several desirable features. First, this method can handle groups of glyphs with arbitrary boundaries. The glyph block need not be rectangular. Second, this method provides a clean method of dealing with scale and rotation variations. Finally, this method is tolerant to intensity gradients and markings placed on top of the glyphs. Although, a FIFO list is used in one embodiment, other search methods, including those that use a LIFO (last-in-first-out) stack or a list based on some other ordering scheme, such as a position within the image, can also be used with similar effect.

Finally, as discussed above, the data matrix is used as shown in FIG. 14. First, the data matrix is rotationally disambiguated as described above (step 1410). The binary values in the data matrix are re-mapped accordingly (step 1412), which may involve re-ordering the matrix and inverting the data values, as necessary based on the rotation. The service code is extracted from the resulting data (step 1414), as is the user code (step 1416), and the service is handled, as discussed above in conjunction with FIG. 3.

While certain exemplary embodiments have been described in detail above, other forms, alternatives, modifications, versions, and variations are equally operative and would be apparent to those skilled in the art. The disclosure is not intended to limit the invention to any particular embodiment, and is intended to embrace all such forms, alternatives, modifications, versions, and variations. 

1. A user interface tag for use in processing a service on a scannable document, comprising: a printable surface on one side of a scannable document; an adhesive surface on an other side of the scannable document, wherein the printable surface further comprises: a printed data field specified substantially within the printable surface and comprising machine-readable marks of digital data encoding a service code and a user identification number; and a printed rectilinear border surrounding the printed data field to define a rectilinear iconic representation, wherein a scanned representation of the machine-readable marks is located by identifying the printed rectilinear border using corner candidates oriented in diametric opposition from among connected components identified on the document and the scanned representation of the machine-readable marks are decoded from the rectilinear iconic representation to specify the user identification number and the service code.
 2. A user interface tag according to claim 1, further comprising: a set of pixels, wherein each pixel can form a path to any other pixel in the pixels set without leaving the pixels set. wherein each of the connected components comprises one such path proceeding in a single direction.
 3. A user interface tag according to claim 2, wherein each such path proceeds in a single direction to define one of a 4-connected and an 8-connected path.
 4. A user interface tag according to claim 1, further comprising: a minimum expected diagonal measurement of the printed rectilinear border; and a maximum expected diagonal measurement of the printed rectilinear border.
 5. A user interface tag according to claim 4, wherein the minimum expected diagonal measurement d_(min) is determined as: d _(min)=√{square root over ((w−Δw)²+(h−Δh)²)}{square root over ((w−Δw)²+(h−Δh)²)} and the maximum expected diagonal measurement d_(max) is determined as: d _(max)=√{square root over ((w+Δw)²+(h+Δh)²)}{square root over ((w+Δw)²+(h+Δh)²)} where w is an expected width of the printed rectilinear border, h is an expected height of the printed rectilinear border, ?w is a width tolerance of die expected width w, and ?h is a height tolerance of the expected height.
 6. A user interface tag according to claim 1, further comprising: a plurality of extreme points extending furthest in a selected direction in each of the connected components, wherein the corner candidates meet a diagonal length criteria applied to at least one pair of the extreme points.
 7. A user interface tag according to claim 6, further comprising: a plurality of coordinate pairs (x, y) to represent each of the extreme points, which are each determined as: N=(x _(N) ,y _(N))εC|y _(N) ≦y∀(x,y)εC E=(x _(E) ,y _(E))εC|x _(E) ≧x∀(x,y)εC S=(x _(s) ,y _(s))εC|y _(s) ≧y∀(x,y)εC W=(x _(W) ,y _(W))εC|x _(W) ≦x∀(x,y)εC NE=(x _(NE) ,y _(NE))εC|(x _(NE) −y _(NE))≧(x−y)∀(x,y)εC SE=(x _(SE) ,y _(SE))εC|(x _(SE) +y _(SE))≧(x+y)∀(x,y)εC SW=(x _(SW) ,y _(SW))εC|(x _(SW) −y _(SW))≦(x−y)∀(x,y)εC NW=(x _(NW) ,y _(NW))εC|(x _(NW) +y _(NW))≦(x+y)∀(x,y)εC where N is a northernmost point defined by coordinates x_(N) and y_(N), E is a easternmost point defined by coordinates x_(E) and y_(E), S is a southernmost point defined by coordinates x_(S) and y_(S), W is a westernmost point defined by coordinates x_(W) and y_(W), NE is a north-easternmost point defined by coordinates x_(NE) and y_(NE), SE is a south-easternmost point defined by coordinates x_(SE) and y_(SE), SW is a south-westernmost point defined by coordinates x_(SW) and y_(SW), NW is a north-westernmost point defined by coordinates x_(NW) and y_(NW), and C is set of pixels representing the connected components.
 8. A user interface tag according to claim 7, wherein the diagonal length criteria is determined as at least one of: d _(min) ≦∥N−S∥≦d _(max), d _(min) ≦∥E−W∥≦d _(max), d _(min) ≦∥NE−SW∥≦d _(max), and d _(min) ≦∥SE−NW∥≦d _(max).
 9. A user interface tag according to claim 1, wherein the rectilinear border defines one of a square and a rectangular shape.
 10. A user interface tag according to claim 1, wherein the rectilinear border further comprises a border portion to orientate the printed data field.
 11. A user interface tag according to claim 1, wherein the service code comprise one of an action on, a transformation of, and a service for the scannable document.
 12. A user interface tag according to claim 1, wherein the user identification number is unique for each of a plurality of users.
 13. A user interface tag according to claim 1, wherein the user identification number is determined from a network address, a time stamp, and a sequence number.
 14. A user interface tag according to claim 1, wherein the machine-readable marks further encode error-correction and synchronization information.
 15. A user interface tag according to claim 1, wherein the rectilinear border is located based on one of a predefined location and rectangle-matching.
 16. A user interface tag according to claim 1, wherein the service code encodes instructions for transformation of the scannable document by an output device.
 17. A user interface tag according to claim 16, wherein the output device is selected from the group comprising a printer, a facsimile machine, a modem, a network connection, and a digital storage device.
 18. A user interface tag according to claim 1, wherein the machine-readable code comprises a glyph field comprising a plurality of self-clocking glyph codes.
 19. A user interface tag according to claim 18, wherein each of the glyph codes is orientated from vertical of the scannable document by one of +45° and −45°.
 20. A user interface tag according to claim 1, wherein the printable surface further comprises non-encoded data. 